<template>
  <div class="page-tools">
<!--    使用卡片-->
    <el-card>
      <el-row type="flex" align="middle" justify="space-between">
        <el-col :span="10">
          <div class="before" v-if="isShowBefore">
            <i class="el-icon-info"></i>
            <slot name="left">
              <span>本月：社保在缴 公积金在夹啦啦啦啦啦啦啦啦拉</span>
            </slot>
          </div>
        </el-col>
        <el-col :span="4" align="right">
          <slot name="right">
            <el-button type="primary" size="mini">历史扫描</el-button>
            <el-button type="primary" size="mini">导出</el-button>
          </slot>
        </el-col>
      </el-row>
    </el-card>
  </div>
</template>

<script>
export default {
  name: "pageTools",
  props:{
    isShowBefore:{
      type:Boolean,
      default:false
    }
  }
}
</script>

<style scoped lang="scss">
.page-tools{
  .before{
    line-height: 26px;
    border-radius: 5px;
    padding: 0 10px;
    display: inline-block;
    border: 2px solid #cfedff;
    background-color: #e6f7ff;
  }
  i{
    color: #449eff;
    margin-right: 8px;
  }
}
</style>
